package pojo.entity;


public class Cart {

    private Long CartId;            //购物车id
    private Long userID;            //关联用户id
    private Long goodId;            //关联商品id
    private int num;                //商品数量


    public Cart(Long cartId, Long userID, Long goodId,  int num) {
        CartId = cartId;
        this.userID = userID;
        this.goodId = goodId;
        this.num = num;
    }

    public Cart() {
    }

    @Override
    public String toString() {
        return "Cart{" +
                "CartId=" + CartId +
                ", userID=" + userID +
                ", goodId=" + goodId +
                ", num=" + num +
                '}';
    }

    public Long getCartId() {
        return CartId;
    }

    public void setCartId(Long cartId) {
        CartId = cartId;
    }

    public Long getUserID() {
        return userID;
    }

    public void setUserID(Long userID) {
        this.userID = userID;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
